package com.cn.jx.message.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "message")
public class MessageEntity implements Serializable{

	/** <p>TODO <p>{@link long serialVersionUID}*/
	private static final long serialVersionUID = -3599233298736502809L;
	
	/** 发送人 */
	private String sender;
	
	/** 标题 */
	private String title;
	
	/** 操作时间 */
	private Date operatTime;
	
	/** 发送内容 */
	private String content;
	
	/** 操作人 */
	private String operator;
	
	/** 消息类型 */
	private String msgType;
	
	/** 部门 */
	private Set<String> orgs;
	
	private Set<String> receivers;
	
	/** 发送是否成功 */
	private Integer sendSuccess;
	
	/** 已读 */
	private Integer read;
	
	/** 0未同步 1 已同步*/
	@Indexed(name="synchFlag",unique=false)
	private Integer synchFlag;
	

	/** <p>{@link Integer Integer getSendSuccess()*/
	public Integer getSendSuccess() {
		return sendSuccess;
	}

	/** <p>setSendSuccess({@link Integer Integer sendSuccess})*/
	public void setSendSuccess(Integer sendSuccess) {
		this.sendSuccess = sendSuccess;
	}

	/** <p>{@link Integer Integer getRead()*/
	public Integer getRead() {
		return read;
	}

	/** <p>setRead({@link Integer Integer read})*/
	public void setRead(Integer read) {
		this.read = read;
	}

	/** <p>{@link String String getTitle()*/
	public String getTitle() {
		return title;
	}

	/** <p>setTitle({@link String String title})*/
	public void setTitle(String title) {
		this.title = title;
	}

	/** <p>{@link String String getSender()*/
	public String getSender() {
		return sender;
	}

	/** <p>setSender({@link String String sender})*/
	public void setSender(String sender) {
		this.sender = sender;
	}

	/** <p>{@link Date Date getOperatTime()*/
	public Date getOperatTime() {
		return operatTime;
	}

	/** <p>setOperatTime({@link Date Date operatTime})*/
	public void setOperatTime(Date operatTime) {
		this.operatTime = operatTime;
	}

	/** <p>{@link String String getContent()*/
	public String getContent() {
		return content;
	}

	/** <p>setContent({@link String String content})*/
	public void setContent(String content) {
		this.content = content;
	}

	/** <p>{@link String String getOperator()*/
	public String getOperator() {
		return operator;
	}

	/** <p>setOperator({@link String String operator})*/
	public void setOperator(String operator) {
		this.operator = operator;
	}

	/** <p>{@link String String getMsgType()*/
	public String getMsgType() {
		return msgType;
	}

	/** <p>setMsgType({@link String String msgType})*/
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	/** <p>{@link Set<String> Set<String> getOrgs()*/
	public Set<String> getOrgs() {
		return orgs;
	}

	/** <p>setOrgs({@link Set<String> Set<String> orgs})*/
	public void setOrgs(Set<String> orgs) {
		this.orgs = orgs;
	}

	/** <p>{@link Set<String> Set<String> getReceivers()*/
	public Set<String> getReceivers() {
		return receivers;
	}

	/** <p>setReceivers({@link Set<String> Set<String> receivers})*/
	public void setReceivers(Set<String> receivers) {
		this.receivers = receivers;
	}

	/** <p>{@link Integer Integer getSynchFlag()*/
	public Integer getSynchFlag() {
		return synchFlag;
	}

	/** <p>setSynchFlag({@link Integer Integer synchFlag})*/
	public void setSynchFlag(Integer synchFlag) {
		this.synchFlag = synchFlag;
	}

}
